/*
 * Powered By free
 * Web Site: 
 * Since 2018 - 2022
 */
package com.menhai.personmanagement.mapper;

/**
 * @author free
 * @version 1.0
 * @since 2022/05/09 16:44
 */
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.ReportHealthrecord;
import com.menhai.personmanagement.entity.vo.HealthRecordVo;

@Mapper
public interface ReportHealthrecordMapper{
	
	/**
	 * insert
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param reportHealthrecord
	 * @return Integer
	 */
	public Integer insert(ReportHealthrecord reportHealthrecord);
	
	
	
	/**
	 * 获取健康记录列表
	 * @param healthRecordVo
	 * @return
	 */
	public IPage<HealthRecordVo> getHealthRecordInfoList(@Param("page")Page<HealthRecordVo> page, @Param("healthRecordVo") HealthRecordVo healthRecordVo);
	
	/**
	 * update
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param reportHealthrecord
	 * @return Integer
	 */
	public Integer update(ReportHealthrecord reportHealthrecord);

	/**
	 * batchUpdate
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param reportHealthrecord
	 * @return Integer
	 */
	public Integer batchUpdate(ReportHealthrecord reportHealthrecord);
	
	/**
	 * delete
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param id
	 * @return Integer
	 */
	public Integer delete(String id);
	
	/**
	 * getOneByCondition
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param reportHealthrecord
	 * @return Integer
	 */
	public ReportHealthrecord getOneByCondition(ReportHealthrecord reportHealthrecord);
	
	/**
	 * getListByCondition
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param reportHealthrecord
	 * @return Integer
	 */
	public List<ReportHealthrecord> getListByCondition(ReportHealthrecord reportHealthrecord);
	
	/**
	 * getCountByCondition
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param reportHealthrecord
	 * @return Integer
	 */
	public Integer getCountByCondition(ReportHealthrecord reportHealthrecord);
	
	/**
	 * getOneById
	 * 
	 * @author longenyue
	 * @date 2022/05/09 16:44
	 * @param id
	 * @return Integer
	 */
	public ReportHealthrecord getOneById(String id);
	
	/**
	 * 获取二层主页
	 * @param frontTwoFlag
	 * @return
	 */
	public List<Map<String,Object>> getFrontTwo(@Param("frontTwoFlag")String frontTwoFlag);
	
	
	/**
	 * 问题列表
	 * @return
	 */
	public List<Map<String,Object>> getMould();
	
	
	/**
	 * 获取记录信息
	 * @param id
	 * @return
	 */
	public Map<String,String> getHealthRecord(@Param("id")String id);
	
	
	/**
	 * 左侧树
	 * @param hosnum
	 * @return
	 */
	public List<Map<String,Object>> getCunRenShu(@Param("hosnum")String hosnum);


	public List getReportByPopulationId(int id);
}
